package com.gkj.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gkj.gulimall.common2.utils.PageUtils;
import com.gkj.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author gkj
 * @email gkj@gmail.com
 * @date 2022-01-14 14:51:22
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    /**
     * 找到catelogId的完整路径
     *
     * @param catelogId
     * @return
     */
    default Long[] findCatelogPath(Long catelogId) {
        return new Long[0];
    }

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();
}

